Ent(<entity name-index number>)
Send 10 Ent(Var1) TO Loc1
Display “Ent A has been combined with” $ Ent(Var1)
Converts a name-index number or integer to an entity name. Use this function when a statement or function needs the name of an entity whose name index number is stored in an attribute, variable, or some other expression. Ent() can also be used to vary the entity that a statement references by using an expression for the name-index number. When used in an expression expecting a string, such as in the second syntax example above,
Any logic where an entity name is normally used.
<entity name-index number>
The name-index number of the entity desired. This component may be an expression which allows the referenced entity to change as the simulation progresses. Real numbers will be treated as integers.
The logic below orders three batches of five different entity types to a location, Receiving.
Var1 = 1
While Var1 <= 3 Do
{
Order 5 Ent(Var1) TO Receiving
Inc Var1
}
See Also
Loc(), Res(), Entity(), and Location().
© 2016 ProModel Corporation • 556 East Technology Avenue • Orem, UT 84097 • Support: 888-776-6633 • www.promodel.com |